{include file="layout/layout" /}
<body style="background-color: #FFF; overflow: auto;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>商品管理</h3>
                <h5>查看商品信息</h5>
            </div>
        </div>
    </div>
    <div class="ncap-form-default">
        <dl class="row">
            <dt class="tit">
                <label>商品ID</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$goods.gd_id}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>商品名称</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$goods.gd_name}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>商品分类</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$goods.sg_name}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>商品价格</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$goods.gd_price}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>店铺名称</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$goods.sp_name}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>商品状态</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{if $goods.gd_status==1}上架{else/}下架{/if}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>审核状态</label>
            </dt>
            <dd class="opt"><strong style='color:black'>
            {switch $goods.gd_audit}
                {case 1}通过{/case}
                {case 2}未通过{/case}
                {default /}待审核
            {/switch}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label class="code_url">商品图片</label>
            </dt>
            <dd class="opt">
            {if $goods.gd_image_url}
                <a href="__ROOT__{$goods.gd_image_url}"><img src="__ROOT__{$goods.gd_image_url}" width='150' height='auto' title='点击查看图片'></a>
            {else/}
                <strong>暂无商品图片</strong>
            {/if}
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>商品描述</label>
            </dt>
            <dd class="opt"><strong{if $goods.gd_desc} style='color:black'>{$goods.gd_desc}{else/}>暂无商品描述{/if}</strong></dd>
        </dl>
        {if $goods.gd_audit}
        <dl class="row">
            <dt class="tit">
                <label>审核时间</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$goods.gd_audit_time|date='Y-m-d H:i:s'}</strong></dd>
        </dl>
        {/if}
        {if $goods.gd_status==1}
        <dl class="row">
            <dt class="tit">
                <label>上架时间</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$goods.gd_sale_time|date='Y-m-d H:i:s'}</strong></dd>
        </dl>
        {/if}
        <dl class="row">
            <dt class="tit">
                <label>添加时间</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$goods.gd_create_time|date='Y-m-d H:i:s'}</strong></dd>
        </dl>
    </div> 
</div>
<script type="text/javascript">
     $('#mobile').blur(function(){
            var v = $(this).val();
             if(!(/^1[34578]\d{9}$/.test(v))){
                $(this).next().next().html("<font color='red'>不合法</font>");
                $('#button').attr("disabled",true);
            }else{
                $(this).next().next().html("<font color='green'>正确</font>");
                $('#button').attr("disabled",false);
            }
        })
</script>

</body></html>